// @ts-nocheck
import React from 'react';
import { ApplyPluginsType, dynamic } from 'E:/code/new_webprograme/Operate/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';
import LoadingComponent from '@/components/PageLoading/index';

export function getRoutes() {
  const routes = [
  {
    "path": "/",
    "component": dynamic({ loader: () => import(/* webpackChunkName: 'layouts__BlankLayout' */'E:/code/new_webprograme/Operate/src/layouts/BlankLayout'), loading: LoadingComponent}),
    "routes": [
      {
        "path": "/user",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'layouts__UserLayout' */'E:/code/new_webprograme/Operate/src/layouts/UserLayout'), loading: LoadingComponent}),
        "routes": [
          {
            "path": "/user/login",
            "name": "login",
            "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__User__login' */'E:/code/new_webprograme/Operate/src/pages/User/login'), loading: LoadingComponent}),
            "exact": true
          },
          {
            "path": "/user",
            "redirect": "/user/login",
            "exact": true
          },
          {
            "name": "register-result",
            "icon": "smile",
            "path": "/user/register-result",
            "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__user__register-result' */'E:/code/new_webprograme/Operate/src/pages/user/register-result'), loading: LoadingComponent}),
            "exact": true
          },
          {
            "name": "register",
            "icon": "smile",
            "path": "/user/register",
            "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__user__register' */'E:/code/new_webprograme/Operate/src/pages/user/register'), loading: LoadingComponent}),
            "exact": true
          },
          {
            "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__404' */'E:/code/new_webprograme/Operate/src/pages/404'), loading: LoadingComponent}),
            "exact": true
          }
        ]
      },
      {
        "path": "/",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'layouts__BasicLayout' */'E:/code/new_webprograme/Operate/src/layouts/BasicLayout'), loading: LoadingComponent}),
        "routes": [
          {
            "path": "/promotion",
            "name": "SEM推广",
            "icon": "cloud",
            "routes": [
              {
                "path": "/",
                "redirect": "/promotion/promotion_accounts",
                "exact": true
              },
              {
                "name": "账号管理",
                "icon": "smile",
                "path": "/promotion/promotion_accounts",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__promotion_accounts' */'E:/code/new_webprograme/Operate/src/pages/promotion/promotion_accounts'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "path": "/promotion/promotion_accounts/detail",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__promotion_accounts__detail' */'E:/code/new_webprograme/Operate/src/pages/promotion/promotion_accounts/detail'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "计划管理",
                "icon": "smile",
                "path": "/promotion/promotion_plan",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__promotion_plan__index' */'E:/code/new_webprograme/Operate/src/pages/promotion/promotion_plan/index'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "path": "/promotion/promotion_plan/detail",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__promotion_plan__detail' */'E:/code/new_webprograme/Operate/src/pages/promotion/promotion_plan/detail'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "单元管理",
                "icon": "smile",
                "path": "/promotion/promotion_unit",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__promotion_unit__index' */'E:/code/new_webprograme/Operate/src/pages/promotion/promotion_unit/index'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "path": "/promotion/promotion_unit/detail",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__promotion_unit__detail' */'E:/code/new_webprograme/Operate/src/pages/promotion/promotion_unit/detail'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "关键词管理",
                "icon": "smile",
                "path": "/promotion/promotion_keyword",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__promotion_keyword__index' */'E:/code/new_webprograme/Operate/src/pages/promotion/promotion_keyword/index'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "path": "/promotion/promotion_keyword/detail",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__promotion_keyword__detail' */'E:/code/new_webprograme/Operate/src/pages/promotion/promotion_keyword/detail'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "创意管理",
                "icon": "smile",
                "path": "/promotion/promotion_create",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__promotion_create__index' */'E:/code/new_webprograme/Operate/src/pages/promotion/promotion_create/index'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "path": "/promotion/promotion_create/detail",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__promotion_create__detail' */'E:/code/new_webprograme/Operate/src/pages/promotion/promotion_create/detail'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "消费报表",
                "icon": "smile",
                "path": "/promotion/consumption_report",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__consumption_report__index' */'E:/code/new_webprograme/Operate/src/pages/promotion/consumption_report/index'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "效果分析",
                "icon": "smile",
                "path": "/promotion/effect_analysis",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__promotion__effect_analysis__index' */'E:/code/new_webprograme/Operate/src/pages/promotion/effect_analysis/index'), loading: LoadingComponent}),
                "exact": true
              }
            ]
          },
          {
            "path": "/information",
            "name": "信息流推广",
            "icon": "message",
            "routes": [
              {
                "path": "/",
                "redirect": "/information/promotion_accounts",
                "exact": true
              },
              {
                "name": "账号管理",
                "icon": "smile",
                "path": "/information/promotion_accounts",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__information__promotion_accounts__index' */'E:/code/new_webprograme/Operate/src/pages/information/promotion_accounts/index'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "path": "/information/promotion_accounts/detail",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__information__promotion_accounts__detail' */'E:/code/new_webprograme/Operate/src/pages/information/promotion_accounts/detail'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "计划管理",
                "icon": "smile",
                "path": "/information/promotion_plan",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__information__promotion_plan__index' */'E:/code/new_webprograme/Operate/src/pages/information/promotion_plan/index'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "path": "/information/promotion_plan/detail",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__information__promotion_plan__detail' */'E:/code/new_webprograme/Operate/src/pages/information/promotion_plan/detail'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "单元管理",
                "icon": "smile",
                "path": "/information/promotion_unit",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__information__promotion_unit__index' */'E:/code/new_webprograme/Operate/src/pages/information/promotion_unit/index'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "path": "/information/promotion_unit/detail",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__information__promotion_unit__detail' */'E:/code/new_webprograme/Operate/src/pages/information/promotion_unit/detail'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "创意管理",
                "icon": "smile",
                "path": "/information/promotion_create",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__information__promotion_create__index' */'E:/code/new_webprograme/Operate/src/pages/information/promotion_create/index'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "path": "/information/promotion_create/detail",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__information__promotion_create__detail' */'E:/code/new_webprograme/Operate/src/pages/information/promotion_create/detail'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "消费报表",
                "icon": "smile",
                "path": "/information/consumption_report",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__information__consumption_report__index' */'E:/code/new_webprograme/Operate/src/pages/information/consumption_report/index'), loading: LoadingComponent}),
                "exact": true
              },
              {
                "name": "效果分析",
                "icon": "smile",
                "path": "/information/effect_analysis",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__information__effect_analysis__index' */'E:/code/new_webprograme/Operate/src/pages/information/effect_analysis/index'), loading: LoadingComponent}),
                "exact": true
              }
            ]
          },
          {
            "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__404' */'E:/code/new_webprograme/Operate/src/pages/404'), loading: LoadingComponent}),
            "exact": true
          }
        ]
      }
    ]
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
